<?php
$title = "Thông tin tuyển dụng nhân sự mới nhất - Tài Chính Online";
$description = "Cập nhật các tin tuyển dụng, tìm việc, kiếm việc, việc làm, lĩnh vực kinh doanh tài chính, tài chính ngân hàng mới nhất - Tài Chính Online";
$keywords = "tìm việc làm, kiếm việc, tuyển dụng, xin việc làm, việc tài chính, tuyển SEO, nhân viên marketing";
?>
<?php
require_once ("src/db/connectdatabase.php");

function getIntro() {
	$con = new ConnectDB();
	$tbl = "loan_intro_footer";
	$fn = array('header', 'footer');
	$condetion = array('id' => 'infotuyendung');
	return $con -> getvalue($tbl, $fn, $condetion);
}

function getdatas($start, $lenght) {
	$con = new ConnectDB();
	
	$sql = "SELECT reid, retitle, datecreate FROM recruitmenttaichinh ORDER BY datecreate DESC LIMIT ".$start.",".$lenght;
	return $con -> getvalueString($sql);
}

function int_to_date($int)
{
    $time  = date("d-m-Y", $int);
    return $time;
}

$intro = getIntro();
$arrdatas = getdatas(0, 10);
	?>

<div class="text12" style="margin: auto; width: 970px; height: 11px; margin-top: 11px; color: #0a8bd9;">
    <u><a href="<?php echo($host) ?>" class="text12" style="color: #0080d6;">Trang chủ</a></u>&gt; Tuyển dụng
</div>
<div style="clear: both; height: 5px;"></div>
<div class="intrl_txt" style="min-height:200px;">
	<div style="float: left; width: 660px; margin-top: 20px; clear: right;">
    <?php 
	if(count($intro) == 1) {
	?>
    	<div class="text11" style="color: #4c4c4c; width: 650px; margin-left: 8px; margin-top: 10px;"><?php echo($intro[0][0]) ?></div>
    <?php
	}
	?>
    	<div style="clear: both"></div>
        <style>
			.tblwt_txt {color: #FFFFFF;font-size: 13px;font-weight: bold;padding: 2px;}
			.tbl_txt {color: #373737;font-size: 11px;padding: 2px;}
			#txt .link-click-xemthem-class {color: #666666;font-size: 11px;line-height: 15px;text-decoration: none;}
			#txt .link-click-xemthem-class {text-decoration: none;}
			#txt .link-click-xemthem-class:hover {color: #8DAE48;text-decoration:none;}
        </style>
        <div>
        	<div class="intrl_txt" style="margin: auto;">
    			<div style="float: left; width: 660px; margin-top: 20px; clear: right;">
                	<div id="txt" class="main-show-news">
                        <table width="660" border="0" cellpadding="1" cellspacing="1" bgcolor="#d5cfb1">
                            <tr bgcolor="#8DAE48">
                                <td height="30" align="left"><b class="tblwt_txt" style="padding-left: 3px; font-size: 14px;">Tin tuyển dụng mới nhất</b></td>
                            </tr>
                            <?php
							foreach($arrdatas as $entry) {
								$strnameurl2 = $entry[1];
								$stbanknameurl2 = rewriteTextUrl(stripUnicode($strnameurl2));
							?>
							<tr bgcolor="#EFEEEE">
								<td align="left" bgcolor="#FFFFFF" class="tbl_txt"><div style="position: relative; margin-bottom: 5px;"><div><div style="height:5px; width: 100%;"></div><span style="width: 530px; float: left;"><strong><a class="link-click-xemthem-class" href="<?php echo($host) ?>tuyen-dung/thong-tin-tuyen-dung/<?php echo($entry[0]) ?>/<?php echo($stbanknameurl2) ?>.html"><?php echo($entry[1]) ?></a></strong></span><span style="width: 120px; float: left; color: #999">Ngày đăng: <? echo(int_to_date($entry[2])) ?></span></div></div></td>
							</tr>
							<tr></tr>
							<?php
							}
							?>
                        </table>
       		 		</div>
                </div>
            </div>
        </div>
        <div style="clear: both"></div>
    <?php 
	if(count($intro) == 1) {
	?>
    	<div class="text11" style="color: #4c4c4c; width: 650px; margin-left: 8px; margin-top: 10px;"><?php echo($intro[0][1]) ?></div>
    <?php
	}
	?>
    </div>
    
    <div style="float: right; clear: right; width: 275px; height: auto;background-image: url(<?php echo($host) ?>images/gray_bg.gif);  margin-top: 10px;">
        <?php include("formsendapplyloan.php"); ?>
    </div>
</div>
    